// setup-uni-ui.js
import * as UniIcons from '@dcloudio/uni-ui/lib/uni-icons/uni-icons.vue'
import * as UniBadge from '@dcloudio/uni-ui/lib/uni-badge/uni-badge.vue'
import * as UniCard from '@dcloudio/uni-ui/lib/uni-card/uni-card.vue'
import * as UniGrid from '@dcloudio/uni-ui/lib/uni-grid/uni-grid.vue'
import * as UniGridItem from '@dcloudio/uni-ui/lib/uni-grid-item/uni-grid-item.vue'
import * as UniList from '@dcloudio/uni-ui/lib/uni-list/uni-list.vue'
import * as UniListItem from '@dcloudio/uni-ui/lib/uni-list-item/uni-list-item.vue'

export function setupUniUI(app) {
  // 注册所有 uni-ui 组件
  app.component('uni-icons', UniIcons.default)
  app.component('uni-badge', UniBadge.default)
  app.component('uni-card', UniCard.default)
  app.component('uni-grid', UniGrid.default)
  app.component('uni-grid-item', UniGridItem.default)
  app.component('uni-list', UniList.default)
  app.component('uni-list-item', UniListItem.default)
  
  // 添加更多需要的组件...
}